#include "dataPackage.h"

dataPackage::dataPackage() {
	sampleDatas.tag = 0;
	sampleDatas.value = 0;
	tick = 0;
}

dataPackage::~dataPackage() {
}

void dataPackage::inbody(char* buffer) {
	tick = *((unsigned long long*)(buffer));
	sampleDatas.tag = *((unsigned int*)(buffer + 8));
	sampleDatas.value = *((unsigned int*)(buffer + 12));
}

unsigned int dataPackage::getTagValue() {
	return sampleDatas.tag;
}

unsigned int dataPackage::getValue() {
	return sampleDatas.value;
}

unsigned long long dataPackage::getTickValue() {
	return tick;
}